package com.laijiale.config;

import io.swagger.v3.oas.models.OpenAPI;
import io.swagger.v3.oas.models.info.Contact;
import io.swagger.v3.oas.models.info.Info;
import org.elasticsearch.common.recycler.Recycler;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @author laijiale
 * @date 2025年01月08日 16:36
 */
@Configuration
public class SpringDocConfig {
    private final String AUTHOR="LaiJiale";
    private final String URL="http://localhost:5600";
    private final String TITLE="ml-search";
    private final String DESCRIPTION="我的在线课堂";
    private final String VERSION="v1.0.0";

    @Bean
    public OpenAPI commonInfo(){
        return new OpenAPI().info(new Info()
                .title(TITLE).description(DESCRIPTION
                ).version(VERSION).contact(new Contact().name(AUTHOR).url(URL)));
    }
}
